//api文件夹用于存放对后台请求的代码
import service from ".";//导入

const studentOpreateApi = {
    //预约课程
    insertSidAndTid(sid,tid){
        return service.post('/user/studentOperate/insertSidAndTid',{
            sid,
            tid
        });
    },
    //删除课程
    deleteSidAndTidBySidAndTid(sid, tid) {
        return service.delete('/user/studentOperate/deleteSidAndTidBySidAndTid',{
            params:{
                sid,
                tid
            }
        });
    },
    //查询所有的老师信息
    selectAllTeacherAndCourse(){
        return service.get('/user/studentOperate/selectAllTeacherAndCourse');
    },

    //展示学生的选择的老师的信息
    selectedTeacherAndCourse(sno){
        return service.get(`/user/studentOperate/selectedTeacherAndCourse/${sno}`);
    },

    //获取学生信息
    studentLoginInfo(){
        return service.get('/user/studentOperate/studentLoginInfo');
    },
    //修改
     update(student) {
        return service.put('/user/studentOperate/update', student);
    },

};

export default studentOpreateApi;//导出